<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://localhost:8080/Gucci/" />
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel='stylesheet' href='/Gucci/css/DinDanGuanLi.css'>
<link rel='stylesheet' href='/Gucci/css/ShuLian.css'>
<base href="http://localhost:8080/Gucci/">
<title>Insert title here</title>
<script type="text/javascript" src="js/DinDanGuanLi.js"></script>
 <script type="text/javascript"src="js/jquery-1.10.2.js"></script>

<%
	request.getAttribute("list");
%>

<head>
<body>
	<form action="DinDanguan/find" method='post'>
		<div id="tou">
			<div id="toubu">
				<div id="dindan"
					style="border-bottom: 1px solid black; width: 100%; font-size: 35px; float: left; margin:;">订单管理</div>

				<div
					style="width: 9%; height: 30px; float: left; margin: 8px 10px 10px 5%;">
					<input type="checkbox" class="ckbox">全选
				</div>

				<input type="date" placeholder="开始时间" name="kaisisj"
					style="width: 9%; height: 25px; float: left; margin: 8px 10px 10px 10px;">
				<input type="date" placeholder="结束时间" name="jssj"
					style="width: 9%; height: 25px; float: left; margin: 8px 10px 10px 10px;" />

				<input list="browsers" name="ddzt" placeholder="订单状态"
					style="width: 9%; height: 25px; float: left; margin: 8px 10px 10px 10px;" />
				<datalist id="browsers">
				<option value="刚下单等待发货">
				<option value="刚下单--等待发货--已发货">
				<option value="刚下单-等待发货-已发货-正在配送">
				<option value="刚下单-等待发货-已发货-正在配送-已送达">
				<option value="刚下单等待发货已发货正在配送已送达-已完成">
				</datalist>
				<input list="browsers1" placeholder="支付状态" name="zfzt"
					style="width: 9%; height: 25px; float: left; margin: 8px 10px 10px 10px;">
				<datalist id="browsers1">
				<option value="支付宝">
				<option value="微信">
				<option value="银行卡">
				<option value="现金">
				
				</datalist>
				<input list="browsers2" placeholder="配送地址" name="pszt"
					value="配送地址" style="width: 9%; height: 25px; float: left; margin: 8px 10px 10px 10px;">
				<datalist id="browsers2">
				<option value="天津">天津</option>
						<option value="河北">河北</option>
						<option value="山西">山西</option>
						<option value="天津">天津</option>
						<option value="内蒙古">内蒙古</option>
						<option value="辽宁">辽宁</option>
						<option value="天津">天津</option>
						<option value="吉林">吉林</option>
						<option value="黑龙江">黑龙江</option>
						<option value="上海">上海</option>
						<option value="江苏">江苏</option>
						<option value="浙江">浙江</option>
						<option value="安徽">安徽</option>
						<option value="福建">福建</option>
						<option value="江西">江西</option>
						<option value="山东">山东</option>
						<option value="河南">河南</option>
						<option value="湖北">湖北</option>
						<option value="湖南">湖南</option>
						<option value="广东">广东</option>
						<option value="广西">广西</option>
						<option value="四川">四川</option>
						<option value="贵州">贵州</option>
						<option value="西藏">西藏</option>
						<option value="陕西">陕西</option>
						<option value="甘肃">甘肃</option>
						<option value="青海">青海</option>
						<option value="宁夏">宁夏</option>
						<option value="新疆">新疆</option>
				</datalist>
				
				<input type="text" name="ddbh" placeholder="请输入订单号"
					style="width: 9%; height: 25px; float: left; margin: 8px 10px 10px 10px;"
					value="0" />
				<button type="submit"
					style="width: 9%; height: 30px; float: left; margin: 8px 10px 10px 10px;">查询</button>
	</form>
	<form action="DinDanguan/fahuo" method='post'>
							<button class="ANN2"
								style="background-color: #FFFFFF; font-size: 25px; font-family: FangSong; border: 1px solid black; font-size: 25px;  margin: 9px 0px 0px -1px; width: 100px; height: 30px;"
								onmouseover="qxgiqasaaay1(this)" onmouseout="qxgiqasaaby2(this)">
								<b>发货</b>
							</button>
							</form>
	</div>

	<div id="yaobu">
		<table id="customers">
			<tr>
				<th>订单号</th>
				<th>商品</th>
				<th>用户ID</th>
				<th>用户名</th>
				<th>发货地址状态</th>
				<th>订单时间</th>

				<th>订单状态</th>
				<th>商品数量</th>
				<th style="width: 200px">订单金额</th>
				<th>支付状态</th>
				<th>收款金额</th>
				<th class="cz">操作</th>
			</tr>
			<tr>
				<c:forEach items="${list}" var="u" varStatus="i">

					<tr>

						<td><input type="checkbox" class="ckbtn"> ${u. go_id}
						
						<td><img id='as1'  style="width: 80px" src='img/${u.gp_tupian}'/><br/>${u.gp_name}
						<td>${u.go_user_id}
						<td>${u.go_user_name}
						<td>${u.go_user_address}
						<td>${u.go_create_time}
						<td>${u.go_status}
						
						
						
						
						
						
						<td><input class="txt" type="text" value="${u.god_quantity}">
						<td><span class="price" data-price="${u.god_cost}">￥${u.god_cost}</span>
						<td>${u.go_type}
						<td>￥${u.gucci_order_detailzonhe}
						<span class="totle" data-totle="${u.gucci_order_detailzonhe}"></span>
						
						<td colspan="2">
							<form action="DinDanguan/SanPinCaXin" method='post'>
								<button class="ANN1" type="submit" name="chakan"
									value="${u.go_id}"
									style="background-color: #FFFFFF; font-size: 25px; font-family: FangSong; font-size: 25px; border: 1px solid black;  margin: 15px 0px 0px 20px; width: 280px; height: 30px;"
									onmouseover="qxgiqasaaay31(this)"
									onmouseout="qxgiqasaaby32(this)">
									<b>查看 详情</b>
								</button>
							</form>
							
							 <!-- <a class="ANN3" style="font-size: 25px; font-family: FangSong;"><b>退款</b></a> -->
						</td>



					</tr>

				</c:forEach>
			<tr>
				<td><input type="checkbox" class="ckbox">全选</td>
				<td colspan="2">已选商品<span class="number">0</span>件
				</td>
				<td>合计：<span class="totleprice">0</span>元
				</td>
				
			</tr>


		</table>
		<script type="text/javascript" src="js/ChaKanShangPin.js"></script>
	</div>

	<div id="weibu">订单管理</div>

	</div>

</body>
<script>
	$(function() {
		//页面加载完毕之后获取到class的值为delete元素,为其绑定点击事件
		$(".delete")
				.click(
						function() {
							if (confirm("确认删除?")) {
								//获取到被删除商品pid
								var pid = this.id;
								window.location.href = "/store_v5/CartServlet?method=removeCartItem&id="
										+ pid;
							}
						});
	});
</script>
</html>